package main

import (
	"fmt"
	"net/http"
)

func main() {
	url := "http://172.1.4.155:8080/view" // 请替换为你要访问的实际网址
	for i := 0; i < 1000; i++ {
		resp, err := http.Get(url)
		if err != nil {
			fmt.Printf("第 %d 次访问出错: %v\n", i+1, err)
			continue
		}
		fmt.Printf("第 %d 次访问，状态码: %d\n", i+1, resp.StatusCode)
		resp.Body.Close()
	}
}
